home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2233 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: news.uh.edu!UHSFIN!SAPSADEB
  2. From: sapsadeb@UHSFIN.UHSA.UH.EDU
  3. Newsgroups: comp.lang.c,comp.os.vms
  4. Subject: Re: Problems with DEC C
  5. Date: 19 Jan 1996 23:07:29 GMT
  6. Organization: University of Houston System
  7. Distribution: world
  8. Message-ID: <4dp87h$mml@masala.cc.uh.edu>
  9. References: <4dojfi$31a@news.aero.org>
  10. Reply-To: sapsadeb@UHSFIN.UHSA.UH.EDU
  11. NNTP-Posting-Host: uhsfin.uhsa.uh.edu
  12.  
  13. In article <4dojfi$31a@news.aero.org>, johnson@halley.aero.org ("Wowbagger the Infinitely Prolonged") writes:
  14. >
  15. >
  16. >I have been trying to install XV 3.10, NETPBM, and XANIM on my VMSCluster.
  17. >I have Alphas and VAXStations running OpenVMS 6.2 and DEC C 5.2.  I keep
  18. >getting errors such as:
  19. >  typedef unsigned char  u_char;
  20. >.........................^
  21. >%CC-E-NOLINKAGE, In this declaration, "u_char" has no linkage and has a prior
  22. >declaration in this scope at line number 304 in file
  23. >SYS$COMMON:[SYSLIB]DECC$RTLDEF.TLB;3.
  24. >at line number 82 in file PD$ROOT:[X11.MISC.XV310]XV.H;1
  25. >
  26. >I get similar errors for u_int, u_short, u_int, and u_long.  Has anyone seen
  27. >errors like these?  How do I get around them?  I don't think it is simply a
  28. >question of using /DECC vs. /VAXC.
  29. >
  30. >TIA.
  31. >--------------------------------------------------------------
  32. >Rick Johnson                   |  
  33. >The Aerospace Corporation      | "I thought, therefore I was"              
  34. >email: johnson@halley.aero.org |              
  35. >phone: (310)336-3588           |            - Descartes...now
  36. >
  37.  
  38. Yes. 
  39.  
  40. The header file types.h has been changed.
  41.  
  42. You can usually get around errors caused by this by using
  43. /define=("_DECC_V4_SOURCE")
  44.  
  45. Code written to use Multinet 3.4 which includes Multinet's netdb.h
  46. header needs to be compiled with 
  47. /define=("__SOCKET_TYPEDEFS","_DECC_V4_SOURCE"). 
  48. I have heard that Multinet 3.5 does not need this one though.
  49.  
  50. BTW, the header file stdlib.h no longer includes types.h, so you
  51. may get stung by that one too.
  52.  
  53. David Bratton
  54. University of Houston System
  55. DBratton@uh.edu
  56.